package com.xj.demo.clazz;

public class JavapTest {
    private Integer num;
    protected String name;
    public final static String SEX = "男";
    public JavapTest(Integer num, String name){
        this.num = num;
        this.name = name;
    }

    private JavapTest(){
        System.out.println("无参构造函数");
    }
    private void test(){
        System.out.println("私有方法");
    }
    protected void test2(){
        System.out.println("受保护的方法");
    }
    public void test3(){
        System.out.println("public的方法");
    }
    public static void test4(){
        System.out.println("static的方法");
    }
}
